<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:s="http://jboss.com/products/seam/taglib"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:e="http://jboss.com/products/seam/excel">

        <e:workbook  type="jxl" ignoreBlanks="false" filename="departmanListesi.xls" >
            
            <e:worksheet name="#{messages['departman.listesi']}" value="#{departmanDao2.departmanList}" var="departman" startColumn="1" startRow="1">
               <e:column>
                <f:facet name="header">
                    
                    <e:cell value="#{messages['departman.ad']}"/>
                
                </f:facet>
                   
                   <e:cell>
                   
                   <h:outputText value="#{departman.departmanAdi}" />
             
                   </e:cell>
                      
               </e:column>
               
               <e:column>
                 <f:facet name="header">
                 
                    <e:cell value="#{messages['departman.sorumlusu']}"/>
                 
                 </f:facet>
                   
                   <e:cell>
                   
                   <h:outputText value="#{departman.departmanSorumlusu}" />
                   
                   </e:cell>
               
               </e:column>
               
               <e:column>
                  <f:facet name="header">
                    
                    <e:cell value="#{messages['departman.dahiliTel']}"/>
                  
                  </f:facet>
                 
                 <e:cell>
                    
                   <h:outputText value="#{departman.dahiliTel}" />
    
                 </e:cell>
               
               </e:column>
               
               
               
               <e:column>
                  <f:facet name="header">
                    
                    <e:cell value="#{messages['departman.durum']}"/>
                  
                  </f:facet>
                 
                 <e:cell>
                    
                   <h:outputText value="#{departman.aktif}" />
    
                 </e:cell>
               
               </e:column>
            
            </e:worksheet>
        
 
        </e:workbook>

</html>